package common;

import java.io.Serializable;

/**
 * This class constructs board objects
 */
@SuppressWarnings("serial")
public class DataTransfer implements Serializable {
	private String gameName;
	private int[][] board;
	private int score;
	
	/**
	 * CTOR
	 * @param gameName the name of the played game
	 * @param board the current state of the board
	 * @param score the current score
	 */
	public DataTransfer(String gameName, int[][] board, int score) {
		this.gameName = gameName;
		this.board = board;
		this.score = score;
	}
	
	/**
	 * Gets current game name
	 * @return current game name
	 */
	public String getGameName() {
		return gameName;
	}
	
	/**
	 * Gets current board state
	 * @return current board state
	 */
	public int[][] getBoard() {
		return board;
	}
	
	/**
	 * Gets current score
	 * @return current score
	 */
	public int getScore() {
		return score;
	}
}
